﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace Norma43
{
    public partial class Grafica : PhoneApplicationPage
    {
        public Grafica()
        {
            InitializeComponent();
            // Set the data context of the listbox control to the sample data
            this.Loaded += new RoutedEventHandler(Grafica_Loaded);
        }

        // Load data for the ViewModel Items
        private void Grafica_Loaded(object sender, RoutedEventArgs e)
        {
            //Calcul Barres

        }

        private void rectIngDesembre_ManipulationCompleted(object sender, ManipulationCompletedEventArgs e)
        {
            txbDespesa.Text = ". €";
            txbIngres.Text = ". €";
        }


        private void rectIngGener_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "701,56 €";
            txbIngres.Text = "125,98 €";

        }

        private void rectIngFebrer_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "1109,33 €";
            txbIngres.Text = "902,08 €";

        }

        private void rectIngMarc_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "499,11 €";
            txbIngres.Text = "1305,01 €";

        }

        private void rectIngAbril_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "1413,69 €";
            txbIngres.Text = "1724,12 €";

        }

        private void rectIngMaig_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "1012,00 €";
            txbIngres.Text = "419,58 €";

        }

        private void rectIngJuny_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "747,98 €";
            txbIngres.Text = "1304,61 €";

        }

        private void rectIngJuliol_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "1137,54 €";
            txbIngres.Text = "1325,62 €";

        }

        private void rectIngAgost_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "1350,56 €";
            txbIngres.Text = "1201,98 €";

        }

        private void rectIngSetembre_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "647,55 €";
            txbIngres.Text = "1429,15 €";

        }

        private void rectIngOctubre_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "1111,21 €";
            txbIngres.Text = "200,98 €";

        }

        private void rectIngNovembre_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "948,56 €";
            txbIngres.Text = "537,47 €";

        }

        private void rectDesDesembre_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            txbDespesa.Text = "1250,09 €";
            txbIngres.Text = "1545,47 €";
        }

    }
}